# QueryInst

Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 13076) END FROM WidgetInst WHERE WidgetInstId = 13076) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13080;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13073) END FROM WidgetInst WHERE WidgetInstId = 13073) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13085;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13074) END FROM WidgetInst WHERE WidgetInstId = 13074) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13086;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13075) END FROM WidgetInst WHERE WidgetInstId = 13075) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13087;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13076) END FROM WidgetInst WHERE WidgetInstId = 13076) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13088;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13073) END FROM WidgetInst WHERE WidgetInstId = 13073) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13074) END FROM WidgetInst WHERE WidgetInstId = 13074) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13094;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13075) END FROM WidgetInst WHERE WidgetInstId = 13075) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13076) END FROM WidgetInst WHERE WidgetInstId = 13076) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13096;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13073) END FROM WidgetInst WHERE WidgetInstId = 13073) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13101;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13074) END FROM WidgetInst WHERE WidgetInstId = 13074) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13102;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13075) END FROM WidgetInst WHERE WidgetInstId = 13075) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13103;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13076) END FROM WidgetInst WHERE WidgetInstId = 13076) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13104;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13073) END FROM WidgetInst WHERE WidgetInstId = 13073) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13109;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13074) END FROM WidgetInst WHERE WidgetInstId = 13074) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13110;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13075) END FROM WidgetInst WHERE WidgetInstId = 13075) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13111;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13076) END FROM WidgetInst WHERE WidgetInstId = 13076) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13112;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13073) END FROM WidgetInst WHERE WidgetInstId = 13073) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13117;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13074) END FROM WidgetInst WHERE WidgetInstId = 13074) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13118;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13075) END FROM WidgetInst WHERE WidgetInstId = 13075) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13119;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13076) END FROM WidgetInst WHERE WidgetInstId = 13076) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13120;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12189) END FROM WidgetInst WHERE WidgetInstId = 12189) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11800) END FROM WidgetInst WHERE WidgetInstId = 11800)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13125;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12190) END FROM WidgetInst WHERE WidgetInstId = 12190) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11800) END FROM WidgetInst WHERE WidgetInstId = 11800)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13126;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12191) END FROM WidgetInst WHERE WidgetInstId = 12191) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11800) END FROM WidgetInst WHERE WidgetInstId = 11800)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13127;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12192) END FROM WidgetInst WHERE WidgetInstId = 12192) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11800) END FROM WidgetInst WHERE WidgetInstId = 11800)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13128;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 13133) END FROM WidgetInst WHERE WidgetInstId = 13133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13137;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 13134) END FROM WidgetInst WHERE WidgetInstId = 13134) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13138;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 13135) END FROM WidgetInst WHERE WidgetInstId = 13135) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13139;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 13136) END FROM WidgetInst WHERE WidgetInstId = 13136) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13140;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13147;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13147;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13147;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13147;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13147;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13147;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13148;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13150) END FROM WidgetInst WHERE WidgetInstId = 13150) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13151;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13153;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 11797) END FROM WidgetInst WHERE WidgetInstId = 11797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13159;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 11797) END FROM WidgetInst WHERE WidgetInstId = 11797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13162;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13165;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13167) END FROM WidgetInst WHERE WidgetInstId = 13167) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13168;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13167) END FROM WidgetInst WHERE WidgetInstId = 13167) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13171;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13174;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13176) END FROM WidgetInst WHERE WidgetInstId = 13176) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13177;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13176) END FROM WidgetInst WHERE WidgetInstId = 13176) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13180;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13176) END FROM WidgetInst WHERE WidgetInstId = 13176) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13183;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13186;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13188) END FROM WidgetInst WHERE WidgetInstId = 13188)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13191;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13190) END FROM WidgetInst WHERE WidgetInstId = 13190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13194;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13190) END FROM WidgetInst WHERE WidgetInstId = 13190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13195;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13190) END FROM WidgetInst WHERE WidgetInstId = 13190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13198;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13190) END FROM WidgetInst WHERE WidgetInstId = 13190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13199;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13188) END FROM WidgetInst WHERE WidgetInstId = 13188)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13200;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13190) END FROM WidgetInst WHERE WidgetInstId = 13190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13203;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13190) END FROM WidgetInst WHERE WidgetInstId = 13190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13204;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13206) END FROM WidgetInst WHERE WidgetInstId = 13206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13207;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13190) END FROM WidgetInst WHERE WidgetInstId = 13190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13209;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13190) END FROM WidgetInst WHERE WidgetInstId = 13190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13210;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13206) END FROM WidgetInst WHERE WidgetInstId = 13206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13211;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13190) END FROM WidgetInst WHERE WidgetInstId = 13190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13213;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13190) END FROM WidgetInst WHERE WidgetInstId = 13190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13214;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13215;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13218;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13251) END FROM WidgetInst WHERE WidgetInstId = 13251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13252;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13251) END FROM WidgetInst WHERE WidgetInstId = 13251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13254;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13251) END FROM WidgetInst WHERE WidgetInstId = 13251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13256;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13258;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13267) END FROM WidgetInst WHERE WidgetInstId = 13267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13268;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13267) END FROM WidgetInst WHERE WidgetInstId = 13267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13270;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13267) END FROM WidgetInst WHERE WidgetInstId = 13267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13272;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13274;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13287) END FROM WidgetInst WHERE WidgetInstId = 13287) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13288;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13287) END FROM WidgetInst WHERE WidgetInstId = 13287) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13290;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13287) END FROM WidgetInst WHERE WidgetInstId = 13287) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13292;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13294;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13307) END FROM WidgetInst WHERE WidgetInstId = 13307) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13308;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13307) END FROM WidgetInst WHERE WidgetInstId = 13307) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13310;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13307) END FROM WidgetInst WHERE WidgetInstId = 13307) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13312;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13313) END FROM WidgetInst WHERE WidgetInstId = 13313) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13307) END FROM WidgetInst WHERE WidgetInstId = 13307)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13314;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13313) END FROM WidgetInst WHERE WidgetInstId = 13313) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13307) END FROM WidgetInst WHERE WidgetInstId = 13307)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13316;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13313) END FROM WidgetInst WHERE WidgetInstId = 13313) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13307) END FROM WidgetInst WHERE WidgetInstId = 13307)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13318;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13320;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13322) END FROM WidgetInst WHERE WidgetInstId = 13322) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13323;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13322) END FROM WidgetInst WHERE WidgetInstId = 13322) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13326;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13322) END FROM WidgetInst WHERE WidgetInstId = 13322) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13329;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 13322) END FROM WidgetInst WHERE WidgetInstId = 13322) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13340;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13343;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13346) END FROM WidgetInst WHERE WidgetInstId = 13346) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13347;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13346) END FROM WidgetInst WHERE WidgetInstId = 13346) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13350;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13346) END FROM WidgetInst WHERE WidgetInstId = 13346) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13353;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 13346) END FROM WidgetInst WHERE WidgetInstId = 13346) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13364;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 13368) END FROM WidgetInst WHERE WidgetInstId = 13368) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13369;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13368) END FROM WidgetInst WHERE WidgetInstId = 13368) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13371;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13368) END FROM WidgetInst WHERE WidgetInstId = 13368) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13373;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13368) END FROM WidgetInst WHERE WidgetInstId = 13368) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13375;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13368) END FROM WidgetInst WHERE WidgetInstId = 13368) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13377;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13368) END FROM WidgetInst WHERE WidgetInstId = 13368) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13379;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13147) END FROM WidgetInst WHERE WidgetInstId = 13147) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11800) END FROM WidgetInst WHERE WidgetInstId = 11800)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13381;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 13383) END FROM WidgetInst WHERE WidgetInstId = 13383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13384;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13411) END FROM WidgetInst WHERE WidgetInstId = 13411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13412;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 13411) END FROM WidgetInst WHERE WidgetInstId = 13411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13414;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13421) END FROM WidgetInst WHERE WidgetInstId = 13421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13426;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13422) END FROM WidgetInst WHERE WidgetInstId = 13422) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13427;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13423) END FROM WidgetInst WHERE WidgetInstId = 13423) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13428;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13424) END FROM WidgetInst WHERE WidgetInstId = 13424) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13429;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13425) END FROM WidgetInst WHERE WidgetInstId = 13425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13430;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 13421) END FROM WidgetInst WHERE WidgetInstId = 13421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13436;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 13422) END FROM WidgetInst WHERE WidgetInstId = 13422) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13437;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 13423) END FROM WidgetInst WHERE WidgetInstId = 13423) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13438;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 13424) END FROM WidgetInst WHERE WidgetInstId = 13424) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13439;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 13425) END FROM WidgetInst WHERE WidgetInstId = 13425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13440;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Flow' AND WidgetInstId = 13450) END FROM WidgetInst WHERE WidgetInstId = 13450) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13451;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 13450) END FROM WidgetInst WHERE WidgetInstId = 13450) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13453;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mixed' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13459;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13467;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 13463) END FROM WidgetInst WHERE WidgetInstId = 13463) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13469;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 13465) END FROM WidgetInst WHERE WidgetInstId = 13465) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13471;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13473;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 13463) END FROM WidgetInst WHERE WidgetInstId = 13463) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13475;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 13465) END FROM WidgetInst WHERE WidgetInstId = 13465) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13477;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13479;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 13463) END FROM WidgetInst WHERE WidgetInstId = 13463) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13481;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 13465) END FROM WidgetInst WHERE WidgetInstId = 13465) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13483;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13485;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 13463) END FROM WidgetInst WHERE WidgetInstId = 13463) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13487;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 13465) END FROM WidgetInst WHERE WidgetInstId = 13465) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13489;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13491;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 13463) END FROM WidgetInst WHERE WidgetInstId = 13463) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13493;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 13465) END FROM WidgetInst WHERE WidgetInstId = 13465) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13495;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13497;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 13463) END FROM WidgetInst WHERE WidgetInstId = 13463) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13499;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 13465) END FROM WidgetInst WHERE WidgetInstId = 13465) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13501;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13503;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 13463) END FROM WidgetInst WHERE WidgetInstId = 13463) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13505;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 13465) END FROM WidgetInst WHERE WidgetInstId = 13465) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13507;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13509;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13511;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13513;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Aw' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13515;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rijn' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13517;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13519;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13521;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13523;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13525;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13527;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 13458) END FROM WidgetInst WHERE WidgetInstId = 13458) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13529;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant Length' AND WidgetInstId = 13542) END FROM WidgetInst WHERE WidgetInstId = 13542) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13543;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13552) END FROM WidgetInst WHERE WidgetInstId = 13552) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13553;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 13555) END FROM WidgetInst WHERE WidgetInstId = 13555) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13556;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 13560) END FROM WidgetInst WHERE WidgetInstId = 13560) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13561;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Input Parameters' AND WidgetInstId = 13560) END FROM WidgetInst WHERE WidgetInstId = 13560) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13563;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13552) END FROM WidgetInst WHERE WidgetInstId = 13552) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13578;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13592;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13592;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13592;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13592;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13592;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13592;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13593;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13595) END FROM WidgetInst WHERE WidgetInstId = 13595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13596;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13598;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 8569) END FROM WidgetInst WHERE WidgetInstId = 8569) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 8569) END FROM WidgetInst WHERE WidgetInstId = 8569) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13607;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13610;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13612) END FROM WidgetInst WHERE WidgetInstId = 13612) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13613;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13612) END FROM WidgetInst WHERE WidgetInstId = 13612) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13616;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13619;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13621) END FROM WidgetInst WHERE WidgetInstId = 13621) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13622;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13621) END FROM WidgetInst WHERE WidgetInstId = 13621) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13625;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13621) END FROM WidgetInst WHERE WidgetInstId = 13621) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13628;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13631;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13633) END FROM WidgetInst WHERE WidgetInstId = 13633)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13636;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13635) END FROM WidgetInst WHERE WidgetInstId = 13635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13639;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13635) END FROM WidgetInst WHERE WidgetInstId = 13635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13640;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13635) END FROM WidgetInst WHERE WidgetInstId = 13635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13643;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13635) END FROM WidgetInst WHERE WidgetInstId = 13635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13644;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13633) END FROM WidgetInst WHERE WidgetInstId = 13633)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13645;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13635) END FROM WidgetInst WHERE WidgetInstId = 13635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13648;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13635) END FROM WidgetInst WHERE WidgetInstId = 13635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13649;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13651) END FROM WidgetInst WHERE WidgetInstId = 13651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13652;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13635) END FROM WidgetInst WHERE WidgetInstId = 13635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13654;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13635) END FROM WidgetInst WHERE WidgetInstId = 13635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13655;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13651) END FROM WidgetInst WHERE WidgetInstId = 13651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13656;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13635) END FROM WidgetInst WHERE WidgetInstId = 13635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13658;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13635) END FROM WidgetInst WHERE WidgetInstId = 13635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13659;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13660;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13663;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13696) END FROM WidgetInst WHERE WidgetInstId = 13696) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13697;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13696) END FROM WidgetInst WHERE WidgetInstId = 13696) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13699;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13696) END FROM WidgetInst WHERE WidgetInstId = 13696) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13701;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13703;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13712) END FROM WidgetInst WHERE WidgetInstId = 13712) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13713;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13712) END FROM WidgetInst WHERE WidgetInstId = 13712) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13715;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13712) END FROM WidgetInst WHERE WidgetInstId = 13712) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13717;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13719;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13732) END FROM WidgetInst WHERE WidgetInstId = 13732) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13733;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13732) END FROM WidgetInst WHERE WidgetInstId = 13732) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13735;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13732) END FROM WidgetInst WHERE WidgetInstId = 13732) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13737;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13739;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13752) END FROM WidgetInst WHERE WidgetInstId = 13752) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13753;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13752) END FROM WidgetInst WHERE WidgetInstId = 13752) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13755;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13752) END FROM WidgetInst WHERE WidgetInstId = 13752) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13757;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13758) END FROM WidgetInst WHERE WidgetInstId = 13758) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13752) END FROM WidgetInst WHERE WidgetInstId = 13752)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13759;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13758) END FROM WidgetInst WHERE WidgetInstId = 13758) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13752) END FROM WidgetInst WHERE WidgetInstId = 13752)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13761;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13758) END FROM WidgetInst WHERE WidgetInstId = 13758) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13752) END FROM WidgetInst WHERE WidgetInstId = 13752)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13763;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13765;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13767) END FROM WidgetInst WHERE WidgetInstId = 13767) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13768;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13767) END FROM WidgetInst WHERE WidgetInstId = 13767) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13771;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13767) END FROM WidgetInst WHERE WidgetInstId = 13767) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13774;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 13767) END FROM WidgetInst WHERE WidgetInstId = 13767) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13785;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13592) END FROM WidgetInst WHERE WidgetInstId = 13592) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13788;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13791) END FROM WidgetInst WHERE WidgetInstId = 13791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13792;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13791) END FROM WidgetInst WHERE WidgetInstId = 13791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13795;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13791) END FROM WidgetInst WHERE WidgetInstId = 13791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13798;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 13791) END FROM WidgetInst WHERE WidgetInstId = 13791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13809;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 13813) END FROM WidgetInst WHERE WidgetInstId = 13813) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13813) END FROM WidgetInst WHERE WidgetInstId = 13813) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13816;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13813) END FROM WidgetInst WHERE WidgetInstId = 13813) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13818;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13813) END FROM WidgetInst WHERE WidgetInstId = 13813) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13820;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13813) END FROM WidgetInst WHERE WidgetInstId = 13813) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13822;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 13813) END FROM WidgetInst WHERE WidgetInstId = 13813) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13824;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 8714) END FROM WidgetInst WHERE WidgetInstId = 8714) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 8572) END FROM WidgetInst WHERE WidgetInstId = 8572)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13826;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 13828) END FROM WidgetInst WHERE WidgetInstId = 13828) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13829;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13839;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13839;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13839;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13839;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13839;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13839;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13840;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13840;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13840;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13840;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13840;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13840;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13841;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13841;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13841;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13841;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13841;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13841;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 13842;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 13842;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 13842;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 13842;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 13842;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 13842;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13843;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13844;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13845;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13846;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13851) END FROM WidgetInst WHERE WidgetInstId = 13851) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13855;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13852) END FROM WidgetInst WHERE WidgetInstId = 13852) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13856;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13853) END FROM WidgetInst WHERE WidgetInstId = 13853) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13857;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 13854) END FROM WidgetInst WHERE WidgetInstId = 13854) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13858;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13863;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13864;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13865;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13866;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13887;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13888;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13889;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13890;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13899;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13900;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13901;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13902;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13911;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13912;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13913;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13914;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13919) END FROM WidgetInst WHERE WidgetInstId = 13919) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13923;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13920) END FROM WidgetInst WHERE WidgetInstId = 13920) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13924;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13921) END FROM WidgetInst WHERE WidgetInstId = 13921) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13925;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13922) END FROM WidgetInst WHERE WidgetInstId = 13922) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13926;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13919) END FROM WidgetInst WHERE WidgetInstId = 13919) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13935;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13920) END FROM WidgetInst WHERE WidgetInstId = 13920) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13936;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13921) END FROM WidgetInst WHERE WidgetInstId = 13921) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13937;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13922) END FROM WidgetInst WHERE WidgetInstId = 13922) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13938;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13947;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13948;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13949;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13950;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13955) END FROM WidgetInst WHERE WidgetInstId = 13955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13959;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13956) END FROM WidgetInst WHERE WidgetInstId = 13956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13960;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13957) END FROM WidgetInst WHERE WidgetInstId = 13957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13961;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13958) END FROM WidgetInst WHERE WidgetInstId = 13958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13962;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13955) END FROM WidgetInst WHERE WidgetInstId = 13955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13971;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13956) END FROM WidgetInst WHERE WidgetInstId = 13956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13972;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13957) END FROM WidgetInst WHERE WidgetInstId = 13957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13973;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13958) END FROM WidgetInst WHERE WidgetInstId = 13958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13974;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13955) END FROM WidgetInst WHERE WidgetInstId = 13955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13983;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13956) END FROM WidgetInst WHERE WidgetInstId = 13956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13984;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13957) END FROM WidgetInst WHERE WidgetInstId = 13957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13985;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13958) END FROM WidgetInst WHERE WidgetInstId = 13958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13986;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13995;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13996;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13997;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13998;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14003) END FROM WidgetInst WHERE WidgetInstId = 14003)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14015;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14004) END FROM WidgetInst WHERE WidgetInstId = 14004)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14016;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14005) END FROM WidgetInst WHERE WidgetInstId = 14005)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14017;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14006) END FROM WidgetInst WHERE WidgetInstId = 14006)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14018;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14011) END FROM WidgetInst WHERE WidgetInstId = 14011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14027;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14012) END FROM WidgetInst WHERE WidgetInstId = 14012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14028;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14013) END FROM WidgetInst WHERE WidgetInstId = 14013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14029;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14014) END FROM WidgetInst WHERE WidgetInstId = 14014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14030;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14011) END FROM WidgetInst WHERE WidgetInstId = 14011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14031;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14012) END FROM WidgetInst WHERE WidgetInstId = 14012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14032;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14013) END FROM WidgetInst WHERE WidgetInstId = 14013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14033;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14014) END FROM WidgetInst WHERE WidgetInstId = 14014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14034;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14011) END FROM WidgetInst WHERE WidgetInstId = 14011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14043;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14012) END FROM WidgetInst WHERE WidgetInstId = 14012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14044;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14013) END FROM WidgetInst WHERE WidgetInstId = 14013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14045;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14014) END FROM WidgetInst WHERE WidgetInstId = 14014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14046;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14011) END FROM WidgetInst WHERE WidgetInstId = 14011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14047;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14012) END FROM WidgetInst WHERE WidgetInstId = 14012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14048;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14013) END FROM WidgetInst WHERE WidgetInstId = 14013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14049;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14014) END FROM WidgetInst WHERE WidgetInstId = 14014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14050;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14003) END FROM WidgetInst WHERE WidgetInstId = 14003)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14051;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14004) END FROM WidgetInst WHERE WidgetInstId = 14004)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14052;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14005) END FROM WidgetInst WHERE WidgetInstId = 14005)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14053;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14006) END FROM WidgetInst WHERE WidgetInstId = 14006)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14054;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14011) END FROM WidgetInst WHERE WidgetInstId = 14011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14063;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14012) END FROM WidgetInst WHERE WidgetInstId = 14012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14064;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14013) END FROM WidgetInst WHERE WidgetInstId = 14013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14065;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14014) END FROM WidgetInst WHERE WidgetInstId = 14014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14066;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14011) END FROM WidgetInst WHERE WidgetInstId = 14011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14067;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14012) END FROM WidgetInst WHERE WidgetInstId = 14012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14068;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14013) END FROM WidgetInst WHERE WidgetInstId = 14013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14069;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14014) END FROM WidgetInst WHERE WidgetInstId = 14014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14070;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14075) END FROM WidgetInst WHERE WidgetInstId = 14075) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14079;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14076) END FROM WidgetInst WHERE WidgetInstId = 14076) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14080;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14077) END FROM WidgetInst WHERE WidgetInstId = 14077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14081;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14078) END FROM WidgetInst WHERE WidgetInstId = 14078) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14082;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14011) END FROM WidgetInst WHERE WidgetInstId = 14011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14087;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14012) END FROM WidgetInst WHERE WidgetInstId = 14012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14088;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14013) END FROM WidgetInst WHERE WidgetInstId = 14013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14089;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14014) END FROM WidgetInst WHERE WidgetInstId = 14014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14090;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14011) END FROM WidgetInst WHERE WidgetInstId = 14011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14012) END FROM WidgetInst WHERE WidgetInstId = 14012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14092;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14013) END FROM WidgetInst WHERE WidgetInstId = 14013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14014) END FROM WidgetInst WHERE WidgetInstId = 14014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14094;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 14075) END FROM WidgetInst WHERE WidgetInstId = 14075) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 14076) END FROM WidgetInst WHERE WidgetInstId = 14076) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14096;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 14077) END FROM WidgetInst WHERE WidgetInstId = 14077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14097;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 14078) END FROM WidgetInst WHERE WidgetInstId = 14078) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14098;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14011) END FROM WidgetInst WHERE WidgetInstId = 14011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14103;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14012) END FROM WidgetInst WHERE WidgetInstId = 14012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14104;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14013) END FROM WidgetInst WHERE WidgetInstId = 14013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14105;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14014) END FROM WidgetInst WHERE WidgetInstId = 14014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14106;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14011) END FROM WidgetInst WHERE WidgetInstId = 14011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14107;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14012) END FROM WidgetInst WHERE WidgetInstId = 14012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14108;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14013) END FROM WidgetInst WHERE WidgetInstId = 14013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14109;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14014) END FROM WidgetInst WHERE WidgetInstId = 14014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14110;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14111;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14112;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14113;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14114;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14123;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14124;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14125;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14126;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14255) END FROM WidgetInst WHERE WidgetInstId = 14255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14259;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14256) END FROM WidgetInst WHERE WidgetInstId = 14256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14260;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14257) END FROM WidgetInst WHERE WidgetInstId = 14257) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14261;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14258) END FROM WidgetInst WHERE WidgetInstId = 14258) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14262;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14255) END FROM WidgetInst WHERE WidgetInstId = 14255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14267;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14256) END FROM WidgetInst WHERE WidgetInstId = 14256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14268;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14257) END FROM WidgetInst WHERE WidgetInstId = 14257) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14269;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14258) END FROM WidgetInst WHERE WidgetInstId = 14258) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14270;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14255) END FROM WidgetInst WHERE WidgetInstId = 14255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14275;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14256) END FROM WidgetInst WHERE WidgetInstId = 14256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14276;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14257) END FROM WidgetInst WHERE WidgetInstId = 14257) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14277;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14258) END FROM WidgetInst WHERE WidgetInstId = 14258) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14278;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14283;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14284;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14285;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14286;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14323;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14320) END FROM WidgetInst WHERE WidgetInstId = 14320) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14324;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14321) END FROM WidgetInst WHERE WidgetInstId = 14321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14325;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14322) END FROM WidgetInst WHERE WidgetInstId = 14322) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14326;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14331;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14320) END FROM WidgetInst WHERE WidgetInstId = 14320) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14332;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14321) END FROM WidgetInst WHERE WidgetInstId = 14321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14333;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14322) END FROM WidgetInst WHERE WidgetInstId = 14322) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14334;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14339;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14320) END FROM WidgetInst WHERE WidgetInstId = 14320) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14340;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14321) END FROM WidgetInst WHERE WidgetInstId = 14321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14341;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14322) END FROM WidgetInst WHERE WidgetInstId = 14322) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14342;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14347;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14348;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14349;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14350;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14399) END FROM WidgetInst WHERE WidgetInstId = 14399) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14403;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14400) END FROM WidgetInst WHERE WidgetInstId = 14400) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14404;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14401) END FROM WidgetInst WHERE WidgetInstId = 14401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14405;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14402) END FROM WidgetInst WHERE WidgetInstId = 14402) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14406;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14399) END FROM WidgetInst WHERE WidgetInstId = 14399) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14411;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14400) END FROM WidgetInst WHERE WidgetInstId = 14400) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14412;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14401) END FROM WidgetInst WHERE WidgetInstId = 14401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14413;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14402) END FROM WidgetInst WHERE WidgetInstId = 14402) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14414;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14399) END FROM WidgetInst WHERE WidgetInstId = 14399) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14419;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14400) END FROM WidgetInst WHERE WidgetInstId = 14400) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14420;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14401) END FROM WidgetInst WHERE WidgetInstId = 14401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14421;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14402) END FROM WidgetInst WHERE WidgetInstId = 14402) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14422;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14427;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14428;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14429;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14430;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14479) END FROM WidgetInst WHERE WidgetInstId = 14479) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14483;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14480) END FROM WidgetInst WHERE WidgetInstId = 14480) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14484;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14481) END FROM WidgetInst WHERE WidgetInstId = 14481) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14485;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14482) END FROM WidgetInst WHERE WidgetInstId = 14482) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14486;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14479) END FROM WidgetInst WHERE WidgetInstId = 14479) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14491;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14480) END FROM WidgetInst WHERE WidgetInstId = 14480) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14492;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14481) END FROM WidgetInst WHERE WidgetInstId = 14481) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14493;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14482) END FROM WidgetInst WHERE WidgetInstId = 14482) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14494;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14479) END FROM WidgetInst WHERE WidgetInstId = 14479) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14499;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14480) END FROM WidgetInst WHERE WidgetInstId = 14480) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14500;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14481) END FROM WidgetInst WHERE WidgetInstId = 14481) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14501;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14482) END FROM WidgetInst WHERE WidgetInstId = 14482) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14502;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14503) END FROM WidgetInst WHERE WidgetInstId = 14503) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14479) END FROM WidgetInst WHERE WidgetInstId = 14479)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14507;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14504) END FROM WidgetInst WHERE WidgetInstId = 14504) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14480) END FROM WidgetInst WHERE WidgetInstId = 14480)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14508;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14505) END FROM WidgetInst WHERE WidgetInstId = 14505) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14481) END FROM WidgetInst WHERE WidgetInstId = 14481)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14509;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14506) END FROM WidgetInst WHERE WidgetInstId = 14506) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14482) END FROM WidgetInst WHERE WidgetInstId = 14482)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14510;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14503) END FROM WidgetInst WHERE WidgetInstId = 14503) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14479) END FROM WidgetInst WHERE WidgetInstId = 14479)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14515;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14504) END FROM WidgetInst WHERE WidgetInstId = 14504) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14480) END FROM WidgetInst WHERE WidgetInstId = 14480)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14516;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14505) END FROM WidgetInst WHERE WidgetInstId = 14505) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14481) END FROM WidgetInst WHERE WidgetInstId = 14481)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14517;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14506) END FROM WidgetInst WHERE WidgetInstId = 14506) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14482) END FROM WidgetInst WHERE WidgetInstId = 14482)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14518;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14503) END FROM WidgetInst WHERE WidgetInstId = 14503) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14479) END FROM WidgetInst WHERE WidgetInstId = 14479)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14523;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14504) END FROM WidgetInst WHERE WidgetInstId = 14504) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14480) END FROM WidgetInst WHERE WidgetInstId = 14480)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14524;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14505) END FROM WidgetInst WHERE WidgetInstId = 14505) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14481) END FROM WidgetInst WHERE WidgetInstId = 14481)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14525;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14506) END FROM WidgetInst WHERE WidgetInstId = 14506) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14482) END FROM WidgetInst WHERE WidgetInstId = 14482)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14526;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14531;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14532;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14533;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14534;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14539) END FROM WidgetInst WHERE WidgetInstId = 14539) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14543;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14540) END FROM WidgetInst WHERE WidgetInstId = 14540) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14544;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14541) END FROM WidgetInst WHERE WidgetInstId = 14541) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14545;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14542) END FROM WidgetInst WHERE WidgetInstId = 14542) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14546;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14539) END FROM WidgetInst WHERE WidgetInstId = 14539) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14555;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14540) END FROM WidgetInst WHERE WidgetInstId = 14540) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14556;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14541) END FROM WidgetInst WHERE WidgetInstId = 14541) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14557;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14542) END FROM WidgetInst WHERE WidgetInstId = 14542) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14558;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14539) END FROM WidgetInst WHERE WidgetInstId = 14539) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14567;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14540) END FROM WidgetInst WHERE WidgetInstId = 14540) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14568;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14541) END FROM WidgetInst WHERE WidgetInstId = 14541) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14569;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14542) END FROM WidgetInst WHERE WidgetInstId = 14542) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14570;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14539) END FROM WidgetInst WHERE WidgetInstId = 14539) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14611;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14540) END FROM WidgetInst WHERE WidgetInstId = 14540) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14612;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14541) END FROM WidgetInst WHERE WidgetInstId = 14541) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14613;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14542) END FROM WidgetInst WHERE WidgetInstId = 14542) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14614;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14623;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14624;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14625;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14626;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14635) END FROM WidgetInst WHERE WidgetInstId = 14635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14639;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14636) END FROM WidgetInst WHERE WidgetInstId = 14636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14640;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14637) END FROM WidgetInst WHERE WidgetInstId = 14637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14641;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14638) END FROM WidgetInst WHERE WidgetInstId = 14638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14642;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14635) END FROM WidgetInst WHERE WidgetInstId = 14635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14651;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14636) END FROM WidgetInst WHERE WidgetInstId = 14636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14652;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14637) END FROM WidgetInst WHERE WidgetInstId = 14637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14653;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14638) END FROM WidgetInst WHERE WidgetInstId = 14638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14654;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14635) END FROM WidgetInst WHERE WidgetInstId = 14635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14663;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14636) END FROM WidgetInst WHERE WidgetInstId = 14636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14664;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14637) END FROM WidgetInst WHERE WidgetInstId = 14637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14665;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14638) END FROM WidgetInst WHERE WidgetInstId = 14638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14666;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14635) END FROM WidgetInst WHERE WidgetInstId = 14635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14707;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14636) END FROM WidgetInst WHERE WidgetInstId = 14636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14708;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14637) END FROM WidgetInst WHERE WidgetInstId = 14637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14709;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14638) END FROM WidgetInst WHERE WidgetInstId = 14638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14710;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 14723) END FROM WidgetInst WHERE WidgetInstId = 14723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 14724) END FROM WidgetInst WHERE WidgetInstId = 14724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14728;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 14725) END FROM WidgetInst WHERE WidgetInstId = 14725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14729;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 14726) END FROM WidgetInst WHERE WidgetInstId = 14726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14730;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14723) END FROM WidgetInst WHERE WidgetInstId = 14723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14735;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14724) END FROM WidgetInst WHERE WidgetInstId = 14724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14736;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14725) END FROM WidgetInst WHERE WidgetInstId = 14725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14737;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14726) END FROM WidgetInst WHERE WidgetInstId = 14726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14738;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14723) END FROM WidgetInst WHERE WidgetInstId = 14723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14743;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14724) END FROM WidgetInst WHERE WidgetInstId = 14724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14744;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14725) END FROM WidgetInst WHERE WidgetInstId = 14725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14745;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14726) END FROM WidgetInst WHERE WidgetInstId = 14726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14746;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14723) END FROM WidgetInst WHERE WidgetInstId = 14723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14751;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14724) END FROM WidgetInst WHERE WidgetInstId = 14724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14752;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14725) END FROM WidgetInst WHERE WidgetInstId = 14725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14753;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14726) END FROM WidgetInst WHERE WidgetInstId = 14726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14754;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14723) END FROM WidgetInst WHERE WidgetInstId = 14723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14759;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14724) END FROM WidgetInst WHERE WidgetInstId = 14724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14760;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14725) END FROM WidgetInst WHERE WidgetInstId = 14725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14761;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14726) END FROM WidgetInst WHERE WidgetInstId = 14726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14762;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14723) END FROM WidgetInst WHERE WidgetInstId = 14723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14767;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14724) END FROM WidgetInst WHERE WidgetInstId = 14724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14768;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14725) END FROM WidgetInst WHERE WidgetInstId = 14725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14769;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14726) END FROM WidgetInst WHERE WidgetInstId = 14726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14770;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13839) END FROM WidgetInst WHERE WidgetInstId = 13839) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 13450) END FROM WidgetInst WHERE WidgetInstId = 13450)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14775;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13840) END FROM WidgetInst WHERE WidgetInstId = 13840) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 13450) END FROM WidgetInst WHERE WidgetInstId = 13450)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14776;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13841) END FROM WidgetInst WHERE WidgetInstId = 13841) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 13450) END FROM WidgetInst WHERE WidgetInstId = 13450)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14777;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 13842) END FROM WidgetInst WHERE WidgetInstId = 13842) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 13450) END FROM WidgetInst WHERE WidgetInstId = 13450)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14778;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 14783) END FROM WidgetInst WHERE WidgetInstId = 14783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14787;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 14784) END FROM WidgetInst WHERE WidgetInstId = 14784) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14788;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 14785) END FROM WidgetInst WHERE WidgetInstId = 14785) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14789;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 14786) END FROM WidgetInst WHERE WidgetInstId = 14786) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14790;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 14797;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 14797;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 14797;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 14797;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 14797;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 14797;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14798;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 14800) END FROM WidgetInst WHERE WidgetInstId = 14800) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14801;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14803;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14809;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14812;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14815;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14817) END FROM WidgetInst WHERE WidgetInstId = 14817) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14818;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14817) END FROM WidgetInst WHERE WidgetInstId = 14817) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14821;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14824;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14826) END FROM WidgetInst WHERE WidgetInstId = 14826) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14827;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14826) END FROM WidgetInst WHERE WidgetInstId = 14826) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14830;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 14826) END FROM WidgetInst WHERE WidgetInstId = 14826) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14833;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14836;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14838) END FROM WidgetInst WHERE WidgetInstId = 14838)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14841;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14840) END FROM WidgetInst WHERE WidgetInstId = 14840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14844;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14840) END FROM WidgetInst WHERE WidgetInstId = 14840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14845;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14840) END FROM WidgetInst WHERE WidgetInstId = 14840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14848;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14840) END FROM WidgetInst WHERE WidgetInstId = 14840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14849;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14838) END FROM WidgetInst WHERE WidgetInstId = 14838)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14850;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14840) END FROM WidgetInst WHERE WidgetInstId = 14840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14853;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14840) END FROM WidgetInst WHERE WidgetInstId = 14840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14854;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14856) END FROM WidgetInst WHERE WidgetInstId = 14856) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14857;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14840) END FROM WidgetInst WHERE WidgetInstId = 14840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14859;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14840) END FROM WidgetInst WHERE WidgetInstId = 14840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14860;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 14856) END FROM WidgetInst WHERE WidgetInstId = 14856) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14861;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 14840) END FROM WidgetInst WHERE WidgetInstId = 14840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14863;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 14840) END FROM WidgetInst WHERE WidgetInstId = 14840) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14864;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14865;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14868;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14901) END FROM WidgetInst WHERE WidgetInstId = 14901) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14902;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14901) END FROM WidgetInst WHERE WidgetInstId = 14901) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14904;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14901) END FROM WidgetInst WHERE WidgetInstId = 14901) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14906;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14908;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14917) END FROM WidgetInst WHERE WidgetInstId = 14917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14918;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14917) END FROM WidgetInst WHERE WidgetInstId = 14917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14920;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14917) END FROM WidgetInst WHERE WidgetInstId = 14917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14922;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14924;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14937) END FROM WidgetInst WHERE WidgetInstId = 14937) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14938;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14937) END FROM WidgetInst WHERE WidgetInstId = 14937) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14940;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14937) END FROM WidgetInst WHERE WidgetInstId = 14937) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14942;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14944;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14957) END FROM WidgetInst WHERE WidgetInstId = 14957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14958;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14957) END FROM WidgetInst WHERE WidgetInstId = 14957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14960;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14957) END FROM WidgetInst WHERE WidgetInstId = 14957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14962;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14957) END FROM WidgetInst WHERE WidgetInstId = 14957)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14964;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14957) END FROM WidgetInst WHERE WidgetInstId = 14957)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14966;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14963) END FROM WidgetInst WHERE WidgetInstId = 14963) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14957) END FROM WidgetInst WHERE WidgetInstId = 14957)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14968;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14970;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14972) END FROM WidgetInst WHERE WidgetInstId = 14972) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14973;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14972) END FROM WidgetInst WHERE WidgetInstId = 14972) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14976;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14972) END FROM WidgetInst WHERE WidgetInstId = 14972) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14979;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14972) END FROM WidgetInst WHERE WidgetInstId = 14972) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14990;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14993;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14996) END FROM WidgetInst WHERE WidgetInstId = 14996) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14997;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14996) END FROM WidgetInst WHERE WidgetInstId = 14996) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15000;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 14996) END FROM WidgetInst WHERE WidgetInstId = 14996) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15003;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14996) END FROM WidgetInst WHERE WidgetInstId = 14996) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15014;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 15018) END FROM WidgetInst WHERE WidgetInstId = 15018) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15019;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15018) END FROM WidgetInst WHERE WidgetInstId = 15018) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15021;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15018) END FROM WidgetInst WHERE WidgetInstId = 15018) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15023;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15018) END FROM WidgetInst WHERE WidgetInstId = 15018) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15025;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15018) END FROM WidgetInst WHERE WidgetInstId = 15018) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15027;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15018) END FROM WidgetInst WHERE WidgetInstId = 15018) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15029;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 14797) END FROM WidgetInst WHERE WidgetInstId = 14797) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 13450) END FROM WidgetInst WHERE WidgetInstId = 13450)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15031;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 15033) END FROM WidgetInst WHERE WidgetInstId = 15033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15034;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Flow' AND WidgetInstId = 15064) END FROM WidgetInst WHERE WidgetInstId = 15064) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15065;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 15064) END FROM WidgetInst WHERE WidgetInstId = 15064) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15067;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mixed' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15073;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15081;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15077) END FROM WidgetInst WHERE WidgetInstId = 15077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15083;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15079) END FROM WidgetInst WHERE WidgetInstId = 15079) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15085;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15087;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15077) END FROM WidgetInst WHERE WidgetInstId = 15077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15089;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 15079) END FROM WidgetInst WHERE WidgetInstId = 15079) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15077) END FROM WidgetInst WHERE WidgetInstId = 15077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15079) END FROM WidgetInst WHERE WidgetInstId = 15079) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15097;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15099;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15077) END FROM WidgetInst WHERE WidgetInstId = 15077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15101;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15079) END FROM WidgetInst WHERE WidgetInstId = 15079) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15103;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15105;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15077) END FROM WidgetInst WHERE WidgetInstId = 15077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15107;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 15079) END FROM WidgetInst WHERE WidgetInstId = 15079) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15109;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15111;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 15077) END FROM WidgetInst WHERE WidgetInstId = 15077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15113;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 15079) END FROM WidgetInst WHERE WidgetInstId = 15079) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15115;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15117;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 15077) END FROM WidgetInst WHERE WidgetInstId = 15077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15119;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 15079) END FROM WidgetInst WHERE WidgetInstId = 15079) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15121;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15123;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15125;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15127;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Aw' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15129;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rijn' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15131;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15133;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15135;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15137;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15139;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15141;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 15072) END FROM WidgetInst WHERE WidgetInstId = 15072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15143;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant Length' AND WidgetInstId = 15156) END FROM WidgetInst WHERE WidgetInstId = 15156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15157;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15166) END FROM WidgetInst WHERE WidgetInstId = 15166) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15167;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 15169) END FROM WidgetInst WHERE WidgetInstId = 15169) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15170;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 15174) END FROM WidgetInst WHERE WidgetInstId = 15174) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15175;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Input Parameters' AND WidgetInstId = 15174) END FROM WidgetInst WHERE WidgetInstId = 15174) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15177;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15166) END FROM WidgetInst WHERE WidgetInstId = 15166) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15192;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15206;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15206;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15206;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15206;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15206;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15206;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15207;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15209) END FROM WidgetInst WHERE WidgetInstId = 15209) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15210;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15212;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 8569) END FROM WidgetInst WHERE WidgetInstId = 8569) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15218;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 8569) END FROM WidgetInst WHERE WidgetInstId = 8569) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15221;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15224;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15226) END FROM WidgetInst WHERE WidgetInstId = 15226) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15227;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15226) END FROM WidgetInst WHERE WidgetInstId = 15226) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15230;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15233;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15235) END FROM WidgetInst WHERE WidgetInstId = 15235) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15236;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15235) END FROM WidgetInst WHERE WidgetInstId = 15235) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15239;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15235) END FROM WidgetInst WHERE WidgetInstId = 15235) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15242;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15245;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15247) END FROM WidgetInst WHERE WidgetInstId = 15247)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15250;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15249) END FROM WidgetInst WHERE WidgetInstId = 15249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15253;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15249) END FROM WidgetInst WHERE WidgetInstId = 15249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15254;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15249) END FROM WidgetInst WHERE WidgetInstId = 15249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15257;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15249) END FROM WidgetInst WHERE WidgetInstId = 15249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15258;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15247) END FROM WidgetInst WHERE WidgetInstId = 15247)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15259;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15249) END FROM WidgetInst WHERE WidgetInstId = 15249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15262;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15249) END FROM WidgetInst WHERE WidgetInstId = 15249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15263;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15265) END FROM WidgetInst WHERE WidgetInstId = 15265) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15266;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15249) END FROM WidgetInst WHERE WidgetInstId = 15249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15268;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15249) END FROM WidgetInst WHERE WidgetInstId = 15249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15269;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15265) END FROM WidgetInst WHERE WidgetInstId = 15265) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15270;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15249) END FROM WidgetInst WHERE WidgetInstId = 15249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15272;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15249) END FROM WidgetInst WHERE WidgetInstId = 15249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15273;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15274;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15277;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15310) END FROM WidgetInst WHERE WidgetInstId = 15310) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15311;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15310) END FROM WidgetInst WHERE WidgetInstId = 15310) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15313;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15310) END FROM WidgetInst WHERE WidgetInstId = 15310) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15315;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15317;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15326) END FROM WidgetInst WHERE WidgetInstId = 15326) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15327;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15326) END FROM WidgetInst WHERE WidgetInstId = 15326) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15329;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15326) END FROM WidgetInst WHERE WidgetInstId = 15326) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15331;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15333;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15346) END FROM WidgetInst WHERE WidgetInstId = 15346) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15347;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15346) END FROM WidgetInst WHERE WidgetInstId = 15346) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15349;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15346) END FROM WidgetInst WHERE WidgetInstId = 15346) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15351;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15353;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15366) END FROM WidgetInst WHERE WidgetInstId = 15366) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15367;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15366) END FROM WidgetInst WHERE WidgetInstId = 15366) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15369;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15366) END FROM WidgetInst WHERE WidgetInstId = 15366) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15371;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15372) END FROM WidgetInst WHERE WidgetInstId = 15372) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15366) END FROM WidgetInst WHERE WidgetInstId = 15366)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15373;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15372) END FROM WidgetInst WHERE WidgetInstId = 15372) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15366) END FROM WidgetInst WHERE WidgetInstId = 15366)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15375;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15372) END FROM WidgetInst WHERE WidgetInstId = 15372) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15366) END FROM WidgetInst WHERE WidgetInstId = 15366)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15377;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15379;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15381) END FROM WidgetInst WHERE WidgetInstId = 15381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15382;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15381) END FROM WidgetInst WHERE WidgetInstId = 15381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15385;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15381) END FROM WidgetInst WHERE WidgetInstId = 15381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15388;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15381) END FROM WidgetInst WHERE WidgetInstId = 15381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15399;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 15206) END FROM WidgetInst WHERE WidgetInstId = 15206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15402;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15405) END FROM WidgetInst WHERE WidgetInstId = 15405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15406;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15405) END FROM WidgetInst WHERE WidgetInstId = 15405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15409;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15405) END FROM WidgetInst WHERE WidgetInstId = 15405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15412;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15405) END FROM WidgetInst WHERE WidgetInstId = 15405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15423;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 15427) END FROM WidgetInst WHERE WidgetInstId = 15427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15428;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15427) END FROM WidgetInst WHERE WidgetInstId = 15427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15430;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15427) END FROM WidgetInst WHERE WidgetInstId = 15427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15432;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15427) END FROM WidgetInst WHERE WidgetInstId = 15427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15434;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15427) END FROM WidgetInst WHERE WidgetInstId = 15427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15436;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 15427) END FROM WidgetInst WHERE WidgetInstId = 15427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15438;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 8714) END FROM WidgetInst WHERE WidgetInstId = 8714) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 8572) END FROM WidgetInst WHERE WidgetInstId = 8572)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15440;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 15442) END FROM WidgetInst WHERE WidgetInstId = 15442) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15443;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15453;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15453;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15453;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15453;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15453;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15453;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15454;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15454;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15454;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15454;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15454;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15454;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15455;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15455;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15455;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15455;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15455;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15455;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 15456;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 15456;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 15456;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 15456;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 15456;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 15456;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15457;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15458;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15459;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15460;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15465) END FROM WidgetInst WHERE WidgetInstId = 15465) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15469;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15466) END FROM WidgetInst WHERE WidgetInstId = 15466) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15470;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15467) END FROM WidgetInst WHERE WidgetInstId = 15467) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15471;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 15468) END FROM WidgetInst WHERE WidgetInstId = 15468) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15472;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15477;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15478;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15479;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15480;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15061) END FROM WidgetInst WHERE WidgetInstId = 15061) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15501;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15061) END FROM WidgetInst WHERE WidgetInstId = 15061) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15502;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15061) END FROM WidgetInst WHERE WidgetInstId = 15061) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15503;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15061) END FROM WidgetInst WHERE WidgetInstId = 15061) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15504;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 15061) END FROM WidgetInst WHERE WidgetInstId = 15061) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15513;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 15061) END FROM WidgetInst WHERE WidgetInstId = 15061) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15514;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 15061) END FROM WidgetInst WHERE WidgetInstId = 15061) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15515;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 15061) END FROM WidgetInst WHERE WidgetInstId = 15061) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15516;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15525;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15526;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15527;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15528;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15533) END FROM WidgetInst WHERE WidgetInstId = 15533) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15537;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15534) END FROM WidgetInst WHERE WidgetInstId = 15534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15538;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15535) END FROM WidgetInst WHERE WidgetInstId = 15535) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15539;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15536) END FROM WidgetInst WHERE WidgetInstId = 15536) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15540;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15533) END FROM WidgetInst WHERE WidgetInstId = 15533) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15549;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15534) END FROM WidgetInst WHERE WidgetInstId = 15534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15550;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15535) END FROM WidgetInst WHERE WidgetInstId = 15535) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15551;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15536) END FROM WidgetInst WHERE WidgetInstId = 15536) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15552;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15561;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15562;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15563;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15564;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15569) END FROM WidgetInst WHERE WidgetInstId = 15569) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15573;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15570) END FROM WidgetInst WHERE WidgetInstId = 15570) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15574;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15571) END FROM WidgetInst WHERE WidgetInstId = 15571) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15575;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15572) END FROM WidgetInst WHERE WidgetInstId = 15572) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15576;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15569) END FROM WidgetInst WHERE WidgetInstId = 15569) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15585;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15570) END FROM WidgetInst WHERE WidgetInstId = 15570) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15586;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15571) END FROM WidgetInst WHERE WidgetInstId = 15571) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15587;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15572) END FROM WidgetInst WHERE WidgetInstId = 15572) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15588;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15569) END FROM WidgetInst WHERE WidgetInstId = 15569) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15597;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15570) END FROM WidgetInst WHERE WidgetInstId = 15570) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15598;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15571) END FROM WidgetInst WHERE WidgetInstId = 15571) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15599;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15572) END FROM WidgetInst WHERE WidgetInstId = 15572) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15600;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15609;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15610;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15611;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15612;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15617) END FROM WidgetInst WHERE WidgetInstId = 15617)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15629;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15618) END FROM WidgetInst WHERE WidgetInstId = 15618)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15630;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15619) END FROM WidgetInst WHERE WidgetInstId = 15619)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15631;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15620) END FROM WidgetInst WHERE WidgetInstId = 15620)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15632;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15641;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15642;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15643;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15644;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15645;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15646;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15647;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15648;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15657;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15658;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15659;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15660;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15661;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15662;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15663;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15664;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15617) END FROM WidgetInst WHERE WidgetInstId = 15617)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15665;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15618) END FROM WidgetInst WHERE WidgetInstId = 15618)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15666;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15619) END FROM WidgetInst WHERE WidgetInstId = 15619)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15667;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15620) END FROM WidgetInst WHERE WidgetInstId = 15620)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15668;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15677;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15678;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15679;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15680;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15681;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15682;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15683;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15684;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15689) END FROM WidgetInst WHERE WidgetInstId = 15689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15693;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15690) END FROM WidgetInst WHERE WidgetInstId = 15690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15694;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15691) END FROM WidgetInst WHERE WidgetInstId = 15691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15695;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15692) END FROM WidgetInst WHERE WidgetInstId = 15692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15696;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15701;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15702;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15703;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15704;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15705;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15706;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15707;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15708;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15689) END FROM WidgetInst WHERE WidgetInstId = 15689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15709;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15690) END FROM WidgetInst WHERE WidgetInstId = 15690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15710;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15691) END FROM WidgetInst WHERE WidgetInstId = 15691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15711;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 15692) END FROM WidgetInst WHERE WidgetInstId = 15692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15712;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15717;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15718;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15719;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15720;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15721;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15722;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15723;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15724;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15725;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15726;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15728;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15737;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15738;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15739;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15740;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15869) END FROM WidgetInst WHERE WidgetInstId = 15869) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15873;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15870) END FROM WidgetInst WHERE WidgetInstId = 15870) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15874;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15871) END FROM WidgetInst WHERE WidgetInstId = 15871) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15875;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15872) END FROM WidgetInst WHERE WidgetInstId = 15872) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15876;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15869) END FROM WidgetInst WHERE WidgetInstId = 15869) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15881;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15870) END FROM WidgetInst WHERE WidgetInstId = 15870) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15882;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15871) END FROM WidgetInst WHERE WidgetInstId = 15871) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15883;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15872) END FROM WidgetInst WHERE WidgetInstId = 15872) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15884;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15869) END FROM WidgetInst WHERE WidgetInstId = 15869) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15889;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15870) END FROM WidgetInst WHERE WidgetInstId = 15870) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15890;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15871) END FROM WidgetInst WHERE WidgetInstId = 15871) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15891;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15872) END FROM WidgetInst WHERE WidgetInstId = 15872) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15892;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15897;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15898;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15899;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15900;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15933) END FROM WidgetInst WHERE WidgetInstId = 15933) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15937;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15934) END FROM WidgetInst WHERE WidgetInstId = 15934) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15938;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15935) END FROM WidgetInst WHERE WidgetInstId = 15935) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15939;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15936) END FROM WidgetInst WHERE WidgetInstId = 15936) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15940;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15933) END FROM WidgetInst WHERE WidgetInstId = 15933) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15945;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15934) END FROM WidgetInst WHERE WidgetInstId = 15934) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15946;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15935) END FROM WidgetInst WHERE WidgetInstId = 15935) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15947;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15936) END FROM WidgetInst WHERE WidgetInstId = 15936) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15948;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15933) END FROM WidgetInst WHERE WidgetInstId = 15933) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15953;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15934) END FROM WidgetInst WHERE WidgetInstId = 15934) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15954;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15935) END FROM WidgetInst WHERE WidgetInstId = 15935) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15955;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15936) END FROM WidgetInst WHERE WidgetInstId = 15936) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15956;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15961;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15962;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15963;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15964;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16013) END FROM WidgetInst WHERE WidgetInstId = 16013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16017;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16014) END FROM WidgetInst WHERE WidgetInstId = 16014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16018;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16015) END FROM WidgetInst WHERE WidgetInstId = 16015) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16019;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16016) END FROM WidgetInst WHERE WidgetInstId = 16016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16020;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16013) END FROM WidgetInst WHERE WidgetInstId = 16013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16025;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16014) END FROM WidgetInst WHERE WidgetInstId = 16014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16026;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16015) END FROM WidgetInst WHERE WidgetInstId = 16015) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16027;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16016) END FROM WidgetInst WHERE WidgetInstId = 16016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16028;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16013) END FROM WidgetInst WHERE WidgetInstId = 16013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16033;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16014) END FROM WidgetInst WHERE WidgetInstId = 16014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16034;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16015) END FROM WidgetInst WHERE WidgetInstId = 16015) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16035;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16016) END FROM WidgetInst WHERE WidgetInstId = 16016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16036;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16041;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16042;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16043;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16044;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16093) END FROM WidgetInst WHERE WidgetInstId = 16093) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16097;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16094) END FROM WidgetInst WHERE WidgetInstId = 16094) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16098;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16095) END FROM WidgetInst WHERE WidgetInstId = 16095) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16099;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16096) END FROM WidgetInst WHERE WidgetInstId = 16096) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16100;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16093) END FROM WidgetInst WHERE WidgetInstId = 16093) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16105;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16094) END FROM WidgetInst WHERE WidgetInstId = 16094) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16106;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16095) END FROM WidgetInst WHERE WidgetInstId = 16095) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16107;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16096) END FROM WidgetInst WHERE WidgetInstId = 16096) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16108;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16093) END FROM WidgetInst WHERE WidgetInstId = 16093) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16113;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16094) END FROM WidgetInst WHERE WidgetInstId = 16094) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16114;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16095) END FROM WidgetInst WHERE WidgetInstId = 16095) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16115;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16096) END FROM WidgetInst WHERE WidgetInstId = 16096) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16116;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16117) END FROM WidgetInst WHERE WidgetInstId = 16117) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16093) END FROM WidgetInst WHERE WidgetInstId = 16093)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16121;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16118) END FROM WidgetInst WHERE WidgetInstId = 16118) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16094) END FROM WidgetInst WHERE WidgetInstId = 16094)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16122;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16119) END FROM WidgetInst WHERE WidgetInstId = 16119) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16095) END FROM WidgetInst WHERE WidgetInstId = 16095)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16123;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16120) END FROM WidgetInst WHERE WidgetInstId = 16120) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16096) END FROM WidgetInst WHERE WidgetInstId = 16096)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16124;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16117) END FROM WidgetInst WHERE WidgetInstId = 16117) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16093) END FROM WidgetInst WHERE WidgetInstId = 16093)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16129;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16118) END FROM WidgetInst WHERE WidgetInstId = 16118) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16094) END FROM WidgetInst WHERE WidgetInstId = 16094)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16130;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16119) END FROM WidgetInst WHERE WidgetInstId = 16119) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16095) END FROM WidgetInst WHERE WidgetInstId = 16095)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16131;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16120) END FROM WidgetInst WHERE WidgetInstId = 16120) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16096) END FROM WidgetInst WHERE WidgetInstId = 16096)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16132;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16117) END FROM WidgetInst WHERE WidgetInstId = 16117) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16093) END FROM WidgetInst WHERE WidgetInstId = 16093)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16137;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16118) END FROM WidgetInst WHERE WidgetInstId = 16118) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16094) END FROM WidgetInst WHERE WidgetInstId = 16094)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16138;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16119) END FROM WidgetInst WHERE WidgetInstId = 16119) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16095) END FROM WidgetInst WHERE WidgetInstId = 16095)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16139;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16120) END FROM WidgetInst WHERE WidgetInstId = 16120) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16096) END FROM WidgetInst WHERE WidgetInstId = 16096)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16140;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16145;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16146;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16147;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16148;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16153) END FROM WidgetInst WHERE WidgetInstId = 16153) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16157;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16154) END FROM WidgetInst WHERE WidgetInstId = 16154) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16158;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16155) END FROM WidgetInst WHERE WidgetInstId = 16155) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16159;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16156) END FROM WidgetInst WHERE WidgetInstId = 16156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16160;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16153) END FROM WidgetInst WHERE WidgetInstId = 16153) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16169;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16154) END FROM WidgetInst WHERE WidgetInstId = 16154) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16170;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16155) END FROM WidgetInst WHERE WidgetInstId = 16155) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16171;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16156) END FROM WidgetInst WHERE WidgetInstId = 16156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16172;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16153) END FROM WidgetInst WHERE WidgetInstId = 16153) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16181;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16154) END FROM WidgetInst WHERE WidgetInstId = 16154) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16182;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16155) END FROM WidgetInst WHERE WidgetInstId = 16155) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16183;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16156) END FROM WidgetInst WHERE WidgetInstId = 16156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16184;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16153) END FROM WidgetInst WHERE WidgetInstId = 16153) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16225;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16154) END FROM WidgetInst WHERE WidgetInstId = 16154) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16226;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16155) END FROM WidgetInst WHERE WidgetInstId = 16155) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16227;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16156) END FROM WidgetInst WHERE WidgetInstId = 16156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16228;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16237;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16238;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16239;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16240;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16249) END FROM WidgetInst WHERE WidgetInstId = 16249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16253;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16250) END FROM WidgetInst WHERE WidgetInstId = 16250) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16254;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16251) END FROM WidgetInst WHERE WidgetInstId = 16251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16255;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16252) END FROM WidgetInst WHERE WidgetInstId = 16252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16256;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16249) END FROM WidgetInst WHERE WidgetInstId = 16249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16265;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16250) END FROM WidgetInst WHERE WidgetInstId = 16250) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16266;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16251) END FROM WidgetInst WHERE WidgetInstId = 16251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16267;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16252) END FROM WidgetInst WHERE WidgetInstId = 16252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16268;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16249) END FROM WidgetInst WHERE WidgetInstId = 16249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16277;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16250) END FROM WidgetInst WHERE WidgetInstId = 16250) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16278;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16251) END FROM WidgetInst WHERE WidgetInstId = 16251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16279;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16252) END FROM WidgetInst WHERE WidgetInstId = 16252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16280;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16249) END FROM WidgetInst WHERE WidgetInstId = 16249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16321;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16250) END FROM WidgetInst WHERE WidgetInstId = 16250) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16322;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16251) END FROM WidgetInst WHERE WidgetInstId = 16251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16323;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16252) END FROM WidgetInst WHERE WidgetInstId = 16252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16324;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16337) END FROM WidgetInst WHERE WidgetInstId = 16337) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16341;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16338) END FROM WidgetInst WHERE WidgetInstId = 16338) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16342;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16339) END FROM WidgetInst WHERE WidgetInstId = 16339) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16343;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16340) END FROM WidgetInst WHERE WidgetInstId = 16340) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16344;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16337) END FROM WidgetInst WHERE WidgetInstId = 16337) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16349;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16338) END FROM WidgetInst WHERE WidgetInstId = 16338) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16350;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16339) END FROM WidgetInst WHERE WidgetInstId = 16339) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16351;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16340) END FROM WidgetInst WHERE WidgetInstId = 16340) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16352;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16337) END FROM WidgetInst WHERE WidgetInstId = 16337) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16357;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16338) END FROM WidgetInst WHERE WidgetInstId = 16338) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16358;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16339) END FROM WidgetInst WHERE WidgetInstId = 16339) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16359;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16340) END FROM WidgetInst WHERE WidgetInstId = 16340) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16360;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16337) END FROM WidgetInst WHERE WidgetInstId = 16337) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16365;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16338) END FROM WidgetInst WHERE WidgetInstId = 16338) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16366;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16339) END FROM WidgetInst WHERE WidgetInstId = 16339) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16367;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16340) END FROM WidgetInst WHERE WidgetInstId = 16340) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16368;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16337) END FROM WidgetInst WHERE WidgetInstId = 16337) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16373;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16338) END FROM WidgetInst WHERE WidgetInstId = 16338) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16374;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16339) END FROM WidgetInst WHERE WidgetInstId = 16339) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16375;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16340) END FROM WidgetInst WHERE WidgetInstId = 16340) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16376;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16337) END FROM WidgetInst WHERE WidgetInstId = 16337) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16381;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16338) END FROM WidgetInst WHERE WidgetInstId = 16338) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16382;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16339) END FROM WidgetInst WHERE WidgetInstId = 16339) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16383;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16340) END FROM WidgetInst WHERE WidgetInstId = 16340) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16384;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 15453) END FROM WidgetInst WHERE WidgetInstId = 15453) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 15064) END FROM WidgetInst WHERE WidgetInstId = 15064)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16389;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 15454) END FROM WidgetInst WHERE WidgetInstId = 15454) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 15064) END FROM WidgetInst WHERE WidgetInstId = 15064)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16390;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 15455) END FROM WidgetInst WHERE WidgetInstId = 15455) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 15064) END FROM WidgetInst WHERE WidgetInstId = 15064)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16391;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 15456) END FROM WidgetInst WHERE WidgetInstId = 15456) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 15064) END FROM WidgetInst WHERE WidgetInstId = 15064)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16392;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16397) END FROM WidgetInst WHERE WidgetInstId = 16397) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16401;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16398) END FROM WidgetInst WHERE WidgetInstId = 16398) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16402;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16399) END FROM WidgetInst WHERE WidgetInstId = 16399) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16403;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16400) END FROM WidgetInst WHERE WidgetInstId = 16400) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16404;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 16411;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 16411;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 16411;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 16411;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 16411;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 16411;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16412;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 16414) END FROM WidgetInst WHERE WidgetInstId = 16414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16415;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16417;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 15061) END FROM WidgetInst WHERE WidgetInstId = 15061) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16423;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 15061) END FROM WidgetInst WHERE WidgetInstId = 15061) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16426;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16429;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16431) END FROM WidgetInst WHERE WidgetInstId = 16431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16432;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16431) END FROM WidgetInst WHERE WidgetInstId = 16431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16435;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16438;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16440) END FROM WidgetInst WHERE WidgetInstId = 16440) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16441;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16440) END FROM WidgetInst WHERE WidgetInstId = 16440) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16444;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 16440) END FROM WidgetInst WHERE WidgetInstId = 16440) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16447;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16450;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16452) END FROM WidgetInst WHERE WidgetInstId = 16452)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16455;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16454) END FROM WidgetInst WHERE WidgetInstId = 16454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16458;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16454) END FROM WidgetInst WHERE WidgetInstId = 16454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16459;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16454) END FROM WidgetInst WHERE WidgetInstId = 16454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16462;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16454) END FROM WidgetInst WHERE WidgetInstId = 16454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16463;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16452) END FROM WidgetInst WHERE WidgetInstId = 16452)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16464;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16454) END FROM WidgetInst WHERE WidgetInstId = 16454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16467;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16454) END FROM WidgetInst WHERE WidgetInstId = 16454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16468;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16470) END FROM WidgetInst WHERE WidgetInstId = 16470) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16471;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16454) END FROM WidgetInst WHERE WidgetInstId = 16454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16473;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16454) END FROM WidgetInst WHERE WidgetInstId = 16454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16474;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 16470) END FROM WidgetInst WHERE WidgetInstId = 16470) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16475;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16454) END FROM WidgetInst WHERE WidgetInstId = 16454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16477;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16454) END FROM WidgetInst WHERE WidgetInstId = 16454) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16478;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16479;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16482;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16515) END FROM WidgetInst WHERE WidgetInstId = 16515) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16516;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16515) END FROM WidgetInst WHERE WidgetInstId = 16515) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16518;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16515) END FROM WidgetInst WHERE WidgetInstId = 16515) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16520;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16522;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16531) END FROM WidgetInst WHERE WidgetInstId = 16531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16532;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16531) END FROM WidgetInst WHERE WidgetInstId = 16531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16534;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16531) END FROM WidgetInst WHERE WidgetInstId = 16531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16536;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16538;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16551) END FROM WidgetInst WHERE WidgetInstId = 16551) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16552;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16551) END FROM WidgetInst WHERE WidgetInstId = 16551) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16554;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16551) END FROM WidgetInst WHERE WidgetInstId = 16551) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16556;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16558;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16571) END FROM WidgetInst WHERE WidgetInstId = 16571) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16572;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16571) END FROM WidgetInst WHERE WidgetInstId = 16571) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16574;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16571) END FROM WidgetInst WHERE WidgetInstId = 16571) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16576;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16577) END FROM WidgetInst WHERE WidgetInstId = 16577) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16571) END FROM WidgetInst WHERE WidgetInstId = 16571)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16578;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16577) END FROM WidgetInst WHERE WidgetInstId = 16577) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16571) END FROM WidgetInst WHERE WidgetInstId = 16571)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16580;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 16577) END FROM WidgetInst WHERE WidgetInstId = 16577) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 16571) END FROM WidgetInst WHERE WidgetInstId = 16571)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16582;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16584;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16586) END FROM WidgetInst WHERE WidgetInstId = 16586) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16587;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16586) END FROM WidgetInst WHERE WidgetInstId = 16586) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16590;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16586) END FROM WidgetInst WHERE WidgetInstId = 16586) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16593;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16586) END FROM WidgetInst WHERE WidgetInstId = 16586) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16607;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16610) END FROM WidgetInst WHERE WidgetInstId = 16610) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16611;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16610) END FROM WidgetInst WHERE WidgetInstId = 16610) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16614;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16610) END FROM WidgetInst WHERE WidgetInstId = 16610) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16617;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16610) END FROM WidgetInst WHERE WidgetInstId = 16610) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16628;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16632) END FROM WidgetInst WHERE WidgetInstId = 16632) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16633;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16632) END FROM WidgetInst WHERE WidgetInstId = 16632) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16635;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16632) END FROM WidgetInst WHERE WidgetInstId = 16632) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16637;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16632) END FROM WidgetInst WHERE WidgetInstId = 16632) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16639;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16632) END FROM WidgetInst WHERE WidgetInstId = 16632) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16641;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16632) END FROM WidgetInst WHERE WidgetInstId = 16632) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16643;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 15064) END FROM WidgetInst WHERE WidgetInstId = 15064)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16645;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16647) END FROM WidgetInst WHERE WidgetInstId = 16647) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16648;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 16691) END FROM WidgetInst WHERE WidgetInstId = 16691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16692;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 16691) END FROM WidgetInst WHERE WidgetInstId = 16691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16694;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 16699) END FROM WidgetInst WHERE WidgetInstId = 16699) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16700;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 16708) END FROM WidgetInst WHERE WidgetInstId = 16708) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16709;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 16708) END FROM WidgetInst WHERE WidgetInstId = 16708) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16711;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 16730) END FROM WidgetInst WHERE WidgetInstId = 16730) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16731;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 16730) END FROM WidgetInst WHERE WidgetInstId = 16730) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16733;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 16738) END FROM WidgetInst WHERE WidgetInstId = 16738) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16739;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 16747) END FROM WidgetInst WHERE WidgetInstId = 16747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16748;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 16747) END FROM WidgetInst WHERE WidgetInstId = 16747) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16750;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 16772) END FROM WidgetInst WHERE WidgetInstId = 16772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16773;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 16772) END FROM WidgetInst WHERE WidgetInstId = 16772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16775;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 16780) END FROM WidgetInst WHERE WidgetInstId = 16780) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16781;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 16789) END FROM WidgetInst WHERE WidgetInstId = 16789) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16790;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 16789) END FROM WidgetInst WHERE WidgetInstId = 16789) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16792;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 16811) END FROM WidgetInst WHERE WidgetInstId = 16811) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16812;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 16811) END FROM WidgetInst WHERE WidgetInstId = 16811) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 16819) END FROM WidgetInst WHERE WidgetInstId = 16819) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16820;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 16828) END FROM WidgetInst WHERE WidgetInstId = 16828) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16829;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 16828) END FROM WidgetInst WHERE WidgetInstId = 16828) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16831;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 16853) END FROM WidgetInst WHERE WidgetInstId = 16853) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16854;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 16853) END FROM WidgetInst WHERE WidgetInstId = 16853) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16856;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 16861) END FROM WidgetInst WHERE WidgetInstId = 16861) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16862;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 16870) END FROM WidgetInst WHERE WidgetInstId = 16870) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16871;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 16870) END FROM WidgetInst WHERE WidgetInstId = 16870) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16873;


